package com.wei.myhame;

import android.content.Intent;
import android.os.Handler;
import android.os.Message;
import android.text.format.DateFormat;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.wei.myhame.base.BaseActivity;
import com.wei.myhame.base.interfaces.IPresenter;
import com.wei.myhame.base.interfaces.contract.login.VisitmattersContract;
import com.wei.myhame.model.bean.VisitmattersBean;
import com.wei.myhame.presenter.login.VisitmattersPresenter;
import com.wei.myhame.ui.activity.IdentificationActivity;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;

//public class MainActivity extends BaseActivity<LoginContract.presenter>implements LoginContract.view {
    public class MainActivity extends BaseActivity/*<VisitmattersContract.presenter>implements VisitmattersContract.view */{
    RelativeLayout background;
    private HashMap<String, Object> map;


    @Override
    protected int getLayout() {
        return R.layout.activity_main;
    }

    @Override
    protected IPresenter createPresenter() {
        return null;
    }


    @Override  //请求接口的方法
    protected void initView() {
       /* map = new HashMap<>();
        map.put("courtCode", "320100");
       map.put("pageNum", "1");
        map.put("pageSize", "10");
        presenter.initData(map,"1");*/

    }

    @Override//实例化数据的方法
    protected void initData() {
        background = findViewById(R.id.background);
        background.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MainActivity.this, IdentificationActivity.class);
                startActivity(intent);
                finish();
            }
        });
    }



    @Override
    protected void onDestroy() {
        super.onDestroy();

    }
}
